<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>yQuant--实时策略筛选牛股</title>
    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="./papaparse.min.js"></script>
    <style>
        html,body{
            font-size: 14px;
            font-family: 'Microsoft Yahei',Tahoma,Verdana,simsun,sans-serif;
        }
        table {width: 85%;margin: 30px auto;}
    </style>
</head>
<body style="text-align:center;"> 
    <table id="table" border="1">
        <caption>60分钟MACD金叉策略</caption>
        <thead>
            <tr>
                <th>时间</th>
                <th>代码</th>
            </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
    <script>
    Papa.parse('./m60-macd.csv', {
        download: true,
        complete: function(results) {
            var data = results.data, html;
            for(var i = 1, _l = data.length-1; i < _l; i++) {
                var item = data[i];
                html += '<tr><td>'+item[0]+'</td><td>'+item[1]+'</td></tr>';
            }
            $('#table tbody').append(html);
        }
    });
    </script>
</body>


</html>